package com.example.protocol.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 作者
 * @since 2021-11-19
 */
@TableName("t_data_battery")
public class BatteryData implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 数据ID
     */
    @TableId(value = "data_id", type = IdType.AUTO)
    private Long dataId;

    /**
     * 读取时间
     */
    private LocalDateTime readTime;

    /**
     * 充电状态
     */
    private Integer chargingState;

    /**
     * 充电电压
     */
    private Integer chargingVoltage;

    /**
     * 充电电流
     */
    private Integer chargingAmpere;

    /**
     * 充电机状态
     */
    private Integer chargingMachineState;

    /**
     * 电池编号
     */
    private String batteryId;

    /**
     * 柜门内电池类型
     */
    private Integer inDoorType;

    /**
     * 柜仓温度
     */
    private Integer doorState;

    /**
     * 电芯温度
     */
    private Integer doorTemperature;

    /**
     * 剩余电量
     */
    private Integer remainingPercentage;

    /**
     * 剩余容量
     */
    private Integer remainingCapacity;

    /**
     * 电池电压
     */
    private Integer voltage;

    /**
     * 电池温度
     */
    private Integer temperature;

    /**
     * 电池经度
     */
    private BigDecimal lng;

    /**
     * 电池纬度
     */
    private BigDecimal lat;

    /**
     * 所在的电池柜ID
     */
    private String cabinetId;

    /**
     * 电池顺序
     */
    private Integer batteryOrder;

    public Long getDataId() {
        return dataId;
    }

    public void setDataId(Long dataId) {
        this.dataId = dataId;
    }
    public LocalDateTime getReadTime() {
        return readTime;
    }

    public void setReadTime(LocalDateTime readTime) {
        this.readTime = readTime;
    }
    public Integer getChargingState() {
        return chargingState;
    }

    public void setChargingState(Integer chargingState) {
        this.chargingState = chargingState;
    }
    public Integer getChargingVoltage() {
        return chargingVoltage;
    }

    public void setChargingVoltage(Integer chargingVoltage) {
        this.chargingVoltage = chargingVoltage;
    }
    public Integer getChargingAmpere() {
        return chargingAmpere;
    }

    public void setChargingAmpere(Integer chargingAmpere) {
        this.chargingAmpere = chargingAmpere;
    }
    public Integer getChargingMachineState() {
        return chargingMachineState;
    }

    public void setChargingMachineState(Integer chargingMachineState) {
        this.chargingMachineState = chargingMachineState;
    }
    public String getBatteryId() {
        return batteryId;
    }

    public void setBatteryId(String batteryId) {
        this.batteryId = batteryId;
    }
    public Integer getInDoorType() {
        return inDoorType;
    }

    public void setInDoorType(Integer inDoorType) {
        this.inDoorType = inDoorType;
    }
    public Integer getDoorState() {
        return doorState;
    }

    public void setDoorState(Integer doorState) {
        this.doorState = doorState;
    }
    public Integer getDoorTemperature() {
        return doorTemperature;
    }

    public void setDoorTemperature(Integer doorTemperature) {
        this.doorTemperature = doorTemperature;
    }
    public Integer getRemainingPercentage() {
        return remainingPercentage;
    }

    public void setRemainingPercentage(Integer remainingPercentage) {
        this.remainingPercentage = remainingPercentage;
    }
    public Integer getRemainingCapacity() {
        return remainingCapacity;
    }

    public void setRemainingCapacity(Integer remainingCapacity) {
        this.remainingCapacity = remainingCapacity;
    }
    public Integer getVoltage() {
        return voltage;
    }

    public void setVoltage(Integer voltage) {
        this.voltage = voltage;
    }
    public Integer getTemperature() {
        return temperature;
    }

    public void setTemperature(Integer temperature) {
        this.temperature = temperature;
    }
    public BigDecimal getLng() {
        return lng;
    }

    public void setLng(BigDecimal lng) {
        this.lng = lng;
    }
    public BigDecimal getLat() {
        return lat;
    }

    public void setLat(BigDecimal lat) {
        this.lat = lat;
    }
    public String getCabinetId() {
        return cabinetId;
    }

    public void setCabinetId(String cabinetId) {
        this.cabinetId = cabinetId;
    }
    public Integer getBatteryOrder() {
        return batteryOrder;
    }

    public void setBatteryOrder(Integer batteryOrder) {
        this.batteryOrder = batteryOrder;
    }

    @Override
    public String toString() {
        return "DataBattery{" +
                "dataId=" + dataId +
                ", readTime=" + readTime +
                ", chargingState=" + chargingState +
                ", chargingVoltage=" + chargingVoltage +
                ", chargingAmpere=" + chargingAmpere +
                ", chargingMachineState=" + chargingMachineState +
                ", batteryId=" + batteryId +
                ", inDoorType=" + inDoorType +
                ", doorState=" + doorState +
                ", doorTemperature=" + doorTemperature +
                ", remainingPercentage=" + remainingPercentage +
                ", remainingCapacity=" + remainingCapacity +
                ", voltage=" + voltage +
                ", temperature=" + temperature +
                ", lng=" + lng +
                ", lat=" + lat +
                ", cabinetId=" + cabinetId +
                ", batteryOrder=" + batteryOrder +
                "}";
    }
}
